package com.yunban.project.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunban.project.article.model.domain.Article;
import com.yunban.project.article.model.dto.ArticleReq;
import com.yunban.project.article.model.dto.ArticleSearchReq;
import com.yunban.project.article.model.vo.ArticleResp;
import net.lab1024.sa.base.common.domain.PageResult;

import java.util.List;

/**
 * @author 63231
 */
public interface ArticleService extends IService<Article> {
    List<Article> findByUserId(long userId);

    Long saveArticle(ArticleReq req);

    ArticleResp getArticleDetail(long id);

    PageResult<ArticleResp> getArticleList(ArticleSearchReq req);

    Boolean publishArticle(long id);

    Boolean cancelPublishArticle(long id);
}
